import request from '@/utils/request'

export function queryMessage() {
  return request({
    url: '/message',
    method: 'get'
  })
}

export function queryReply(messageId) {
  return request({
    url: `/message/${messageId}`,
    method: 'get'
  })
}
export function addMessage(data) {
  return request({
    url: '/message',
    method: 'post',
    data
  })
}
export function addReply(id, data) {
  return request({
    url: `/message/${id}`,
    method: 'post',
    data
  })
}

export function delMessage(id) {
  return request({
    url: `/message/${id}`,
    method: 'delete'
  })
}

